//
//  SEConfirmReservePatientCell.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/7.
//

import UIKit

class SEConfirmReservePatientCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .background
        contentView.backgroundColor = .background
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func updateWithViewModel(_ viewModel: SEHospitalizeOrderDetailViewModel) {
        nameLabel.text = viewModel.model.patientName
    }
    
    @IBOutlet private weak var containerView: UIView! {
        didSet {
            containerView.setLayerCorners(rect: containerView.bounds,
                                          radius: 16,
                                          corners: [.bottomLeft, .bottomRight])
        }
    }
    
    @IBOutlet private weak var nameLabel: UILabel!
    @IBOutlet private weak var serviceLabel: UILabel!
    @IBOutlet private weak var indemnityLabel: UILabel!
    
}
